package com.example.kindergarten.generator.kindergarten;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName kg_study
 */
@TableName(value ="kg_study")
public class KgStudy implements Serializable {
    /**
     * 学生id
     */
    @TableId(value = "id")
    private Integer id;

    /**
     * 班级id
     */
    @TableField(value = "class_id")
    private Integer class_id;

    /**
     * 学生名字
     */
    @TableField(value = "study_name")
    private String study_name;

    /**
     * 性别 0  未知 1 男 2 女
     */
    @TableField(value = "sex")
    private Integer sex;

    /**
     * 证件类型
     */
    @TableField(value = "car_type")
    private Integer car_type;

    /**
     * 身份证
     */
    @TableField(value = "id_car")
    private String id_car;

    /**
     * 生日
     */
    @TableField(value = "birthday")
    private Date birthday;

    /**
     * 户口性质 1 城市 2 农业
     */
    @TableField(value = "registration_type")
    private Integer registration_type;

    /**
     * 1 中国  2外籍
     */
    @TableField(value = "nationality")
    private Integer nationality;

    /**
     * 民族名字
     */
    @TableField(value = "nation_name")
    private String nation_name;

    /**
     * 民族id
     */
    @TableField(value = "nation_id")
    private Integer nation_id;

    /**
     * 血型 0 未知 1.A 2.B 3.AB 4.O 5.RH阳性  6.RH阴性 7HLA血型 8 未定 9其他
     */
    @TableField(value = "blood_type")
    private Integer blood_type;

    /**
     * 人员类型
     */
    @TableField(value = "type")
    private Integer type;

    /**
     * 籍贯
     */
    @TableField(value = "native_place")
    private String native_place;

    /**
     * 0 非孤儿  1 孤儿 
     */
    @TableField(value = "orphan")
    private String orphan;

    /**
     * 0 非独生子女  1 独生子女
     */
    @TableField(value = "only_child")
    private String only_child;

    /**
     * 0 非残疾 1 残疾
     */
    @TableField(value = "disability")
    private String disability;

    /**
     * 户籍
     */
    @TableField(value = "residence")
    private String residence;

    /**
     * 出生地
     */
    @TableField(value = "birthplace")
    private String birthplace;

    /**
     * 就读方式 0未知  1 走读 2 住校
     */
    @TableField(value = "study_mode")
    private Integer study_mode;

    /**
     * 现居住地
     */
    @TableField(value = "address")
    private String address;

    /**
     * 所属派出所
     */
    @TableField(value = "police_station")
    private String police_station;

    /**
     * 0 非留守儿童 1 留守儿童
     */
    @TableField(value = "leftover_children")
    private Integer leftover_children;

    /**
     * 是否是港澳台侨 类型
     */
    @TableField(value = "citizen_type")
    private Integer citizen_type;

    /**
     * 创建时间
     */
    @TableField(value = "created_at")
    private Date created_at;

    /**
     * 更新时间
     */
    @TableField(value = "updated_at")
    private Date updated_at;

    /**
     * 删除时间
     */
    @TableField(value = "deleted_at")
    private Date deleted_at;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 学生id
     */
    public Integer getId() {
        return id;
    }

    /**
     * 学生id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 班级id
     */
    public Integer getClass_id() {
        return class_id;
    }

    /**
     * 班级id
     */
    public void setClass_id(Integer class_id) {
        this.class_id = class_id;
    }

    /**
     * 学生名字
     */
    public String getStudy_name() {
        return study_name;
    }

    /**
     * 学生名字
     */
    public void setStudy_name(String study_name) {
        this.study_name = study_name;
    }

    /**
     * 性别 0  未知 1 男 2 女
     */
    public Integer getSex() {
        return sex;
    }

    /**
     * 性别 0  未知 1 男 2 女
     */
    public void setSex(Integer sex) {
        this.sex = sex;
    }

    /**
     * 证件类型
     */
    public Integer getCar_type() {
        return car_type;
    }

    /**
     * 证件类型
     */
    public void setCar_type(Integer car_type) {
        this.car_type = car_type;
    }

    /**
     * 身份证
     */
    public String getId_car() {
        return id_car;
    }

    /**
     * 身份证
     */
    public void setId_car(String id_car) {
        this.id_car = id_car;
    }

    /**
     * 生日
     */
    public Date getBirthday() {
        return birthday;
    }

    /**
     * 生日
     */
    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    /**
     * 户口性质 1 城市 2 农业
     */
    public Integer getRegistration_type() {
        return registration_type;
    }

    /**
     * 户口性质 1 城市 2 农业
     */
    public void setRegistration_type(Integer registration_type) {
        this.registration_type = registration_type;
    }

    /**
     * 1 中国  2外籍
     */
    public Integer getNationality() {
        return nationality;
    }

    /**
     * 1 中国  2外籍
     */
    public void setNationality(Integer nationality) {
        this.nationality = nationality;
    }

    /**
     * 民族名字
     */
    public String getNation_name() {
        return nation_name;
    }

    /**
     * 民族名字
     */
    public void setNation_name(String nation_name) {
        this.nation_name = nation_name;
    }

    /**
     * 民族id
     */
    public Integer getNation_id() {
        return nation_id;
    }

    /**
     * 民族id
     */
    public void setNation_id(Integer nation_id) {
        this.nation_id = nation_id;
    }

    /**
     * 血型 0 未知 1.A 2.B 3.AB 4.O 5.RH阳性  6.RH阴性 7HLA血型 8 未定 9其他
     */
    public Integer getBlood_type() {
        return blood_type;
    }

    /**
     * 血型 0 未知 1.A 2.B 3.AB 4.O 5.RH阳性  6.RH阴性 7HLA血型 8 未定 9其他
     */
    public void setBlood_type(Integer blood_type) {
        this.blood_type = blood_type;
    }

    /**
     * 人员类型
     */
    public Integer getType() {
        return type;
    }

    /**
     * 人员类型
     */
    public void setType(Integer type) {
        this.type = type;
    }

    /**
     * 籍贯
     */
    public String getNative_place() {
        return native_place;
    }

    /**
     * 籍贯
     */
    public void setNative_place(String native_place) {
        this.native_place = native_place;
    }

    /**
     * 0 非孤儿  1 孤儿 
     */
    public String getOrphan() {
        return orphan;
    }

    /**
     * 0 非孤儿  1 孤儿 
     */
    public void setOrphan(String orphan) {
        this.orphan = orphan;
    }

    /**
     * 0 非独生子女  1 独生子女
     */
    public String getOnly_child() {
        return only_child;
    }

    /**
     * 0 非独生子女  1 独生子女
     */
    public void setOnly_child(String only_child) {
        this.only_child = only_child;
    }

    /**
     * 0 非残疾 1 残疾
     */
    public String getDisability() {
        return disability;
    }

    /**
     * 0 非残疾 1 残疾
     */
    public void setDisability(String disability) {
        this.disability = disability;
    }

    /**
     * 户籍
     */
    public String getResidence() {
        return residence;
    }

    /**
     * 户籍
     */
    public void setResidence(String residence) {
        this.residence = residence;
    }

    /**
     * 出生地
     */
    public String getBirthplace() {
        return birthplace;
    }

    /**
     * 出生地
     */
    public void setBirthplace(String birthplace) {
        this.birthplace = birthplace;
    }

    /**
     * 就读方式 0未知  1 走读 2 住校
     */
    public Integer getStudy_mode() {
        return study_mode;
    }

    /**
     * 就读方式 0未知  1 走读 2 住校
     */
    public void setStudy_mode(Integer study_mode) {
        this.study_mode = study_mode;
    }

    /**
     * 现居住地
     */
    public String getAddress() {
        return address;
    }

    /**
     * 现居住地
     */
    public void setAddress(String address) {
        this.address = address;
    }

    /**
     * 所属派出所
     */
    public String getPolice_station() {
        return police_station;
    }

    /**
     * 所属派出所
     */
    public void setPolice_station(String police_station) {
        this.police_station = police_station;
    }

    /**
     * 0 非留守儿童 1 留守儿童
     */
    public Integer getLeftover_children() {
        return leftover_children;
    }

    /**
     * 0 非留守儿童 1 留守儿童
     */
    public void setLeftover_children(Integer leftover_children) {
        this.leftover_children = leftover_children;
    }

    /**
     * 是否是港澳台侨 类型
     */
    public Integer getCitizen_type() {
        return citizen_type;
    }

    /**
     * 是否是港澳台侨 类型
     */
    public void setCitizen_type(Integer citizen_type) {
        this.citizen_type = citizen_type;
    }

    /**
     * 创建时间
     */
    public Date getCreated_at() {
        return created_at;
    }

    /**
     * 创建时间
     */
    public void setCreated_at(Date created_at) {
        this.created_at = created_at;
    }

    /**
     * 更新时间
     */
    public Date getUpdated_at() {
        return updated_at;
    }

    /**
     * 更新时间
     */
    public void setUpdated_at(Date updated_at) {
        this.updated_at = updated_at;
    }

    /**
     * 删除时间
     */
    public Date getDeleted_at() {
        return deleted_at;
    }

    /**
     * 删除时间
     */
    public void setDeleted_at(Date deleted_at) {
        this.deleted_at = deleted_at;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        KgStudy other = (KgStudy) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getClass_id() == null ? other.getClass_id() == null : this.getClass_id().equals(other.getClass_id()))
            && (this.getStudy_name() == null ? other.getStudy_name() == null : this.getStudy_name().equals(other.getStudy_name()))
            && (this.getSex() == null ? other.getSex() == null : this.getSex().equals(other.getSex()))
            && (this.getCar_type() == null ? other.getCar_type() == null : this.getCar_type().equals(other.getCar_type()))
            && (this.getId_car() == null ? other.getId_car() == null : this.getId_car().equals(other.getId_car()))
            && (this.getBirthday() == null ? other.getBirthday() == null : this.getBirthday().equals(other.getBirthday()))
            && (this.getRegistration_type() == null ? other.getRegistration_type() == null : this.getRegistration_type().equals(other.getRegistration_type()))
            && (this.getNationality() == null ? other.getNationality() == null : this.getNationality().equals(other.getNationality()))
            && (this.getNation_name() == null ? other.getNation_name() == null : this.getNation_name().equals(other.getNation_name()))
            && (this.getNation_id() == null ? other.getNation_id() == null : this.getNation_id().equals(other.getNation_id()))
            && (this.getBlood_type() == null ? other.getBlood_type() == null : this.getBlood_type().equals(other.getBlood_type()))
            && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
            && (this.getNative_place() == null ? other.getNative_place() == null : this.getNative_place().equals(other.getNative_place()))
            && (this.getOrphan() == null ? other.getOrphan() == null : this.getOrphan().equals(other.getOrphan()))
            && (this.getOnly_child() == null ? other.getOnly_child() == null : this.getOnly_child().equals(other.getOnly_child()))
            && (this.getDisability() == null ? other.getDisability() == null : this.getDisability().equals(other.getDisability()))
            && (this.getResidence() == null ? other.getResidence() == null : this.getResidence().equals(other.getResidence()))
            && (this.getBirthplace() == null ? other.getBirthplace() == null : this.getBirthplace().equals(other.getBirthplace()))
            && (this.getStudy_mode() == null ? other.getStudy_mode() == null : this.getStudy_mode().equals(other.getStudy_mode()))
            && (this.getAddress() == null ? other.getAddress() == null : this.getAddress().equals(other.getAddress()))
            && (this.getPolice_station() == null ? other.getPolice_station() == null : this.getPolice_station().equals(other.getPolice_station()))
            && (this.getLeftover_children() == null ? other.getLeftover_children() == null : this.getLeftover_children().equals(other.getLeftover_children()))
            && (this.getCitizen_type() == null ? other.getCitizen_type() == null : this.getCitizen_type().equals(other.getCitizen_type()))
            && (this.getCreated_at() == null ? other.getCreated_at() == null : this.getCreated_at().equals(other.getCreated_at()))
            && (this.getUpdated_at() == null ? other.getUpdated_at() == null : this.getUpdated_at().equals(other.getUpdated_at()))
            && (this.getDeleted_at() == null ? other.getDeleted_at() == null : this.getDeleted_at().equals(other.getDeleted_at()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getClass_id() == null) ? 0 : getClass_id().hashCode());
        result = prime * result + ((getStudy_name() == null) ? 0 : getStudy_name().hashCode());
        result = prime * result + ((getSex() == null) ? 0 : getSex().hashCode());
        result = prime * result + ((getCar_type() == null) ? 0 : getCar_type().hashCode());
        result = prime * result + ((getId_car() == null) ? 0 : getId_car().hashCode());
        result = prime * result + ((getBirthday() == null) ? 0 : getBirthday().hashCode());
        result = prime * result + ((getRegistration_type() == null) ? 0 : getRegistration_type().hashCode());
        result = prime * result + ((getNationality() == null) ? 0 : getNationality().hashCode());
        result = prime * result + ((getNation_name() == null) ? 0 : getNation_name().hashCode());
        result = prime * result + ((getNation_id() == null) ? 0 : getNation_id().hashCode());
        result = prime * result + ((getBlood_type() == null) ? 0 : getBlood_type().hashCode());
        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
        result = prime * result + ((getNative_place() == null) ? 0 : getNative_place().hashCode());
        result = prime * result + ((getOrphan() == null) ? 0 : getOrphan().hashCode());
        result = prime * result + ((getOnly_child() == null) ? 0 : getOnly_child().hashCode());
        result = prime * result + ((getDisability() == null) ? 0 : getDisability().hashCode());
        result = prime * result + ((getResidence() == null) ? 0 : getResidence().hashCode());
        result = prime * result + ((getBirthplace() == null) ? 0 : getBirthplace().hashCode());
        result = prime * result + ((getStudy_mode() == null) ? 0 : getStudy_mode().hashCode());
        result = prime * result + ((getAddress() == null) ? 0 : getAddress().hashCode());
        result = prime * result + ((getPolice_station() == null) ? 0 : getPolice_station().hashCode());
        result = prime * result + ((getLeftover_children() == null) ? 0 : getLeftover_children().hashCode());
        result = prime * result + ((getCitizen_type() == null) ? 0 : getCitizen_type().hashCode());
        result = prime * result + ((getCreated_at() == null) ? 0 : getCreated_at().hashCode());
        result = prime * result + ((getUpdated_at() == null) ? 0 : getUpdated_at().hashCode());
        result = prime * result + ((getDeleted_at() == null) ? 0 : getDeleted_at().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", class_id=").append(class_id);
        sb.append(", study_name=").append(study_name);
        sb.append(", sex=").append(sex);
        sb.append(", car_type=").append(car_type);
        sb.append(", id_car=").append(id_car);
        sb.append(", birthday=").append(birthday);
        sb.append(", registration_type=").append(registration_type);
        sb.append(", nationality=").append(nationality);
        sb.append(", nation_name=").append(nation_name);
        sb.append(", nation_id=").append(nation_id);
        sb.append(", blood_type=").append(blood_type);
        sb.append(", type=").append(type);
        sb.append(", native_place=").append(native_place);
        sb.append(", orphan=").append(orphan);
        sb.append(", only_child=").append(only_child);
        sb.append(", disability=").append(disability);
        sb.append(", residence=").append(residence);
        sb.append(", birthplace=").append(birthplace);
        sb.append(", study_mode=").append(study_mode);
        sb.append(", address=").append(address);
        sb.append(", police_station=").append(police_station);
        sb.append(", leftover_children=").append(leftover_children);
        sb.append(", citizen_type=").append(citizen_type);
        sb.append(", created_at=").append(created_at);
        sb.append(", updated_at=").append(updated_at);
        sb.append(", deleted_at=").append(deleted_at);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}